import tornado.web
from utils.response_format import resp_json


class RedisHandler(tornado.web.RequestHandler):

    async def get(self):
        """操作redis"""
        r = await self.application.redis_db.get("key")
        result = resp_json(data=r)
        self.write(result)